package com.xc.sbdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author wzy
 * @since 2022-09-17
 */
@TableName("t_sys_user")
@ApiModel(value = "SysUser对象", description = "系统用户")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("账号")
    private String account;

    @TableField("realName")
    @ApiModelProperty("真是姓名")
    private String realName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("性别（1:女、 2:男）")
    private Integer sex;

    @ApiModelProperty("出生日期（年-月-日）")
    private LocalDate birthday;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("用户地址")
    private String address;

    @TableField("roleId")
    @ApiModelProperty("用户角色id")
    private Long roleId;

    @TableField("createdUserId")
    @ApiModelProperty("创建人")
    private Long createdUserId;

    @TableField("createdTime")
    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @TableField("updatedUserId")
    @ApiModelProperty("修改人")
    private Long updatedUserId;

    @TableField("updatedTime")
    @ApiModelProperty("修改时间")
    private LocalDateTime updatedTime;

    private String idpicpath;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    public Long getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Long createdUserId) {
        this.createdUserId = createdUserId;
    }
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
    public Long getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(Long updatedUserId) {
        this.updatedUserId = updatedUserId;
    }
    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }
    public String getIdpicpath() {
        return idpicpath;
    }

    public void setIdpicpath(String idpicpath) {
        this.idpicpath = idpicpath;
    }

    @Override
    public String toString() {
        return "SysUser{" +
            "id=" + id +
            ", account=" + account +
            ", realName=" + realName +
            ", password=" + password +
            ", sex=" + sex +
            ", birthday=" + birthday +
            ", phone=" + phone +
            ", address=" + address +
            ", roleId=" + roleId +
            ", createdUserId=" + createdUserId +
            ", createdTime=" + createdTime +
            ", updatedUserId=" + updatedUserId +
            ", updatedTime=" + updatedTime +
            ", idpicpath=" + idpicpath +
        "}";
    }
}
